tiny change

error rename, casting correctly