Solves issue with certain commands and nonJSON serializable data