Fixed incorrect method definition