fix bug in manateeworks.js