fixed bug in my modal plugin