Fixes an npe