fixed a warning where a string was passed instead of a long