Fixed issue with posX and posY