fix prevent default bug