small fix for maximize() in floating layout