Fixed maximize & title bar issues