fixed error occuring with foster