Fixed error for unsafe statements