Fixed window positioning issues