Fix for problem with vertices (bug fix used on <= FROYO devices)
use position(0) instead of flip()
logic improvements