Fixed frontend bugs.