Having problems with prototype object ids