Fixed a bug where position got assigned wrong.