Bug fix in paramToObjectId