fix the bug in deferred when development is set to false