Bug fix on checking if in dev