Fixed return error preventing keyword adding logic from being reached