Fix method not found exception