fixed typo in resize, fixed missing ready callback error