fix def changes thanks to Kashike on irc