Fixing code type