Fixed massive overflow issue.

Using display property instead