quick fix to bug throwing error