fixing div null by error