fixed missing check