fixed bug with "#" type not working after a refresh