Fix unsafe variable