changed small bug using cancan