Fixed position function bugs.