fix djinn lamp function