Fixing bug with command blocks