Assignment first not working