Fixed bug in modalbox