Fixes return value not checked