fixed isBlocked method