Fixed href being called after onclick