Fixed open file clearing bug
Fixed latest bugs 9/2013 #1