Corrected some method declaration to pass the strict check warnings