Fixed NullPointerException on enable