Fixed reference to main (was pos)