fixed error problem