fix prototype error