Fix obj at layer check