fix

#Cannot read property 'top' of null