fix init default values and fix angular adds a leading slash after the hash