Fixed resize fragment errors