fixed firebase call