Fixes se maxY limit, moves reset code inside hideModal