Fixed crash due to removed function.