fixing unrecognised selector crash

This was causing a crash for me and rightly so since there's no method that doesn't take an error parameter. This fixes the crash without changing API.