Fixed unsafe operations on compile