Fixed error when checking the pos arg when setting the position