Fixed deprecated function call.