james threw himself over to the doorframe and i wrapped my legs around him quickly , in a panic , thinking he was going to get pushed down the corridor by the current , but he had actually grabbed the doorframe in time .