Fixes #169 by normalizing window bounds values.