Fix bug while updating map

The order of the parameter presented by the engine was off. This
lead to an exception, but has been fixed now.