fix prototype issue