fixed !lock and !unlock commands